package com.zr._01_creation6._01_staticFactory;

public class GetProduct {

    public static void main(String[] args) {

        Product product1;
        Product product2;

        // 使用 静态工厂 创建具体的product
        product1 = StaticFactory.produce(1);
        product2 = StaticFactory.produce(2);

        product1.produce();
        product2.produce();
    }

}
